package bjtu.tjj.simpledy.mapper;

import bjtu.tjj.simpledy.dto.IdAndPwdDTO;
import bjtu.tjj.simpledy.po.UserPO;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    UserPO findById(@Param("id") Long id);

    UserPO findByUsername(@Param("username") String username);

    int insert(UserPO userPO);

    int destroy(IdAndPwdDTO idAndPwdDTO);

    int updateAvatar(@Param("id") Long id, @Param("avatar") String avatar);
}




